package com.candy.oop;

public class Student {
    //属性私有化啊
    private int stuId;
    private String stuName;
    private boolean stuSex;
    //定义常量 final
    //声明常量必须要赋初始值，常量一经赋值后，不可以修改
    public static final String scName="内蒙古师范大学";

    public Student() {
    }

    public Student(int stuId, String stuName, boolean stuSex) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuSex = stuSex;
    }

    //公有的getter setter方法
    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public boolean isStuSex() {
        return stuSex;
    }

    public void setStuSex(boolean stuSex) {
        this.stuSex = stuSex;
    }
}
